import request from '@/router/axios'

export function fetchHisDrugUnitList(query) {
  return request({
    url: '/his/hisdrugunit/page',
    method: 'get',
    params: query
  })
}

export function addHisDrugUnitObj(obj) {
  return request({
    url: '/his/hisdrugunit',
    method: 'post',
    data: obj
  })
}

export function getHisDrugUnitObj(id) {
  return request({
    url: '/his/hisdrugunit/' + id,
    method: 'get'
  })
}

export function delHisDrugUnitObj(id) {
  return request({
    url: '/his/hisdrugunit/' + id,
    method: 'delete'
  })
}

export function putHisDrugUnitObj(obj) {
  return request({
    url: '/his/hisdrugunit',
    method: 'put',
    data: obj
  })
}
